import React from 'react';
import {Text} from 'react-native';
import CheckBox from '../../components/ant-copy/checkbox/CheckboxItem'


export default class CheckBoxItem extends React.PureComponent{

  state = {
    checkBox1: false,
  };

  render(){
    console.log('item',this.props.item)
    return (
      <CheckBox
        checked={this.state.checkBox1}
        style={{ tintColor: '#f00' }}
        onClick={() => {
          this.setState({ checkBox1:!this.state.checkBox1 });
        }}
      >
       {this.props.item.name}
      </CheckBox>)
  }
}
